package ltd.dujiabao.capability.adapter.driven.persistence.capmng;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author : DuJiabao
 * @Project : ddd-capability
 * @Time : 2024/4/7 20:58
 * @Desc :
 */
@Entity
@Table(name = "capability")
@Data
@Accessors(chain = true)
public class CapabilityDO {
    @Id
    @Column(name = "id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "dev_model_id")
    private String devModelId;

    @Column(name = "hardware_ver")
    private String hardwareVer;

    @Column(name = "firmware_ver")
    private String firmwareVer;

    @Column(name = "module")
    private String module;

    @Column(name = "body")
    private String body;

    @Column(name = "created_at")
    private Long createdAt;

    @Column(name = "created_by")
    private Long createdBy;

    @Column(name = "last_updated_at")
    private Long lastUpdatedAt;

    @Column(name = "last_updated_by")
    private Long lastUpdatedBy;
}
